//
//  WeiboCellLayout.h
//  Project_2_weibo
//
//  Created by 林林 on 16/6/20.
//  Copyright © 2016年 lhn. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Weibo.h"

//布局条件设置
#define kTopViewHeight 70 //顶部视图高度
#define kSpaceWidth 10 //上下左右的默认空隙
#define kReWeiboSpace 10 //转发微博正文与背景的空隙
#define kImageViewWidth 100 //默认图片大小
#define kWieboTextFont [UIFont systemFontOfSize:16] //微博正文字体
#define kReWieboTextFont [UIFont systemFontOfSize:14] //微博正文字体
#define kWeiboTextLinespace 5 //微博正文行间距
#define kReWeiboTextLinespace 3 //转发微博正文的行间距

@interface WeiboCellLayout : NSObject

@property (nonatomic, strong) Weibo *weiboModel;

+ (instancetype)weiboCellLayoutWithWeiboModel:(Weibo *)weiboModel;

//布局结果
@property (nonatomic, assign, readonly) CGRect weiboTextFrame; //正文
@property (nonatomic, assign, readonly) CGRect weiboImageViewFrame; //正文图片

@property (nonatomic, assign, readonly) CGRect reWeiboTextFrame; //转发微博的正文
@property (nonatomic, assign, readonly) CGRect reWeiboBgImageViewFrame; //转发微博的背景图片

@property (nonatomic, strong, readonly) NSArray *imagesFrameArray; //多图的数组

//单元格总高度
@property (nonatomic, assign, readonly) CGFloat cellHeight; //单元格总高度

@end






